package og.example.controller;
import og.example.service.GroupService;
import og.example.entity.Group;
import java.util.List;

public class GroupController {
    private GroupService groupService = new GroupService();

    public boolean groupAdd(String groupName, String className) {
        return groupService.groupAdd(groupName, className);
    }

    public boolean groupDelete(String groupName) {
        return groupService.groupDelete(groupName);
    }

    public boolean groupUpdate(String groupName, String newGroupName) {
        return groupService.groupUpdate(groupName, newGroupName);
    }

    public List<Group> groupQuery() {
        return groupService.groupQuery();
    }
}
